package router

import (
	"gateway/api/account"
	"gateway/contract/api"
	"gateway/middleware"
)

func Register(apiHandle api.IApiHandle) {
	apiHandle.Middleware(&middleware.ReplayMiddleware{}, &middleware.TokenMiddleware{})
	{
		apiHandle.Post("account/add", &account.AddApi{})
		apiHandle.Post("account/edit", &account.EditApi{})
		apiHandle.Post("account/info", &account.InfoApi{})
	}
}
